// samsting : this file is auto create.

#include "Ocs/2015-03-01/DescribeInstancesRequest.h"

namespace aliyun { namespace Ocs {

DescribeInstancesRequest::DescribeInstancesRequest() : RpcAcsRequest("Ocs", "2015-03-01", "DescribeInstances") {
}

int64 DescribeInstancesRequest::GetOwnerId(void) const {
  return OwnerId_;
}
void DescribeInstancesRequest::SetOwnerId(int64 OwnerId) {
  OwnerId_ = OwnerId;
  PutQueryParameter("OwnerId", string_ValueOfInt64(OwnerId_));
}

const string& DescribeInstancesRequest::GetResourceOwnerAccount(void) const {
  return ResourceOwnerAccount_;
}
void DescribeInstancesRequest::SetResourceOwnerAccount(const string& ResourceOwnerAccount) {
  ResourceOwnerAccount_ = ResourceOwnerAccount;
  PutQueryParameter("ResourceOwnerAccount", ResourceOwnerAccount_);
}

int64 DescribeInstancesRequest::GetResourceOwnerId(void) const {
  return ResourceOwnerId_;
}
void DescribeInstancesRequest::SetResourceOwnerId(int64 ResourceOwnerId) {
  ResourceOwnerId_ = ResourceOwnerId;
  PutQueryParameter("ResourceOwnerId", string_ValueOfInt64(ResourceOwnerId_));
}

const string& DescribeInstancesRequest::GetOwnerAccount(void) const {
  return OwnerAccount_;
}
void DescribeInstancesRequest::SetOwnerAccount(const string& OwnerAccount) {
  OwnerAccount_ = OwnerAccount;
  PutQueryParameter("OwnerAccount", OwnerAccount_);
}

const string& DescribeInstancesRequest::GetInstanceIds(void) const {
  return InstanceIds_;
}
void DescribeInstancesRequest::SetInstanceIds(const string& InstanceIds) {
  InstanceIds_ = InstanceIds;
  PutQueryParameter("InstanceIds", InstanceIds_);
}

const string& DescribeInstancesRequest::GetInstanceStatus(void) const {
  return InstanceStatus_;
}
void DescribeInstancesRequest::SetInstanceStatus(const string& InstanceStatus) {
  InstanceStatus_ = InstanceStatus;
  PutQueryParameter("InstanceStatus", InstanceStatus_);
}

int DescribeInstancesRequest::GetPageNumber(void) const {
  return PageNumber_;
}
bool DescribeInstancesRequest::SetPageNumber(int PageNumber) {
  if(PageNumber < 1) {
    return false;
  }
  PageNumber_ = PageNumber;
  PutQueryParameter("PageNumber", string_ValueOfInt(PageNumber_));
  return true;
}

int DescribeInstancesRequest::GetPageSize(void) const {
  return PageSize_;
}
bool DescribeInstancesRequest::SetPageSize(int PageSize) {
  if(PageSize < 1) {
    return false;
  }
  if(PageSize > 50) {
    return false;
  }
  PageSize_ = PageSize;
  PutQueryParameter("PageSize", string_ValueOfInt(PageSize_));
  return true;
}

const string& DescribeInstancesRequest::GetNetworkType(void) const {
  return NetworkType_;
}
void DescribeInstancesRequest::SetNetworkType(const string& NetworkType) {
  NetworkType_ = NetworkType;
  PutQueryParameter("NetworkType", NetworkType_);
}

const string& DescribeInstancesRequest::GetVpcId(void) const {
  return VpcId_;
}
void DescribeInstancesRequest::SetVpcId(const string& VpcId) {
  VpcId_ = VpcId;
  PutQueryParameter("VpcId", VpcId_);
}

const string& DescribeInstancesRequest::GetVSwitchId(void) const {
  return VSwitchId_;
}
void DescribeInstancesRequest::SetVSwitchId(const string& VSwitchId) {
  VSwitchId_ = VSwitchId;
  PutQueryParameter("VSwitchId", VSwitchId_);
}

const string& DescribeInstancesRequest::GetPrivateIpAddresses(void) const {
  return PrivateIpAddresses_;
}
void DescribeInstancesRequest::SetPrivateIpAddresses(const string& PrivateIpAddresses) {
  PrivateIpAddresses_ = PrivateIpAddresses;
  PutQueryParameter("PrivateIpAddresses", PrivateIpAddresses_);
}


} } // namespace aliyun { namespace Ocs {

// end of file 
